package cn.laixueit.service.impl;

import cn.laixueit.mapper.UserMapper;
import cn.laixueit.pojo.User;
import cn.laixueit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> findall() {
        return userMapper.findall();
    }
}
